import java.util.Scanner;

/**
 * Created by haiqiang on 17/10/1.
 */
public class InputTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        //get first input
        System.out.println("What is your name? ");
        String name = scanner.nextLine();

        //get second input
        System.out.println("How old are you? ");
        int age = scanner.nextInt();

        //display output on console
        System.out.println("Hello, " + name + ". Next year, you will be " + (age + 1));

        System.out.println(System.getProperty("user.dir"));
    }
}
